using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;

namespace Darilek.SandcastleExtensions.Components.Configuration
{
	/// <summary>
	/// Base class representing basic component attributes (type, assembly and id)
	/// and &lt;component&gt; element of xml fragment in sandcastle.config file
	/// </summary>
	[XmlRoot("component", Namespace="")]
	public class ComponentConfigurationBase
	{
		private string _type;
		private string _assembly;
		private string _id;

		/// <summary>
		/// Represents &quot;id&quot; attribute in &lt;component&gt; element
		/// </summary>
		[XmlAttribute("id")]
		public string Id
		{
			get { return _id; }
			set { _id = value; }
		}

		/// <summary>
		/// Represents &quot;assembly&quot; attribute in &lt;component&gt; element
		/// </summary>
		[XmlAttribute("assembly")]
		public string Assembly
		{
			get { return _assembly; }
			set { _assembly = value; }
		}

		/// <summary>
		/// Represents &quot;type&quot; attribute in &lt;component&gt; element
		/// </summary>
		[XmlAttribute("type")]
		public string Type
		{
			get { return _type; }
			set { _type = value; }
		}

	}
}
